package com.zn.mapper;

import com.zn.entity.CustomerMessageRecord;
import com.zn.web.dto.AppCustomerDto;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface CustomerMessageRecordMapper {

    int insert(CustomerMessageRecord record);

    int insertSelective(CustomerMessageRecord record);

    CustomerMessageRecord selectByPrimaryKey(Integer customerMessageId);

    int updateByPrimaryKeySelective(CustomerMessageRecord record);

    int updateByPrimaryKeyWithBLOBs(CustomerMessageRecord record);

    int updateByPrimaryKey(CustomerMessageRecord record);

    /**
     * 分页查询所有
     * @param record
     * @return
     */
    List<CustomerMessageRecord> findAll(AppCustomerDto record);
    int findCount(CustomerMessageRecord record);
}